package org.ru.mse10.cvis.entity.cv;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.ru.mse10.cvis.entity.misc.Identity;

/**
 * The Class MembershipOfProfessionalBody.
 */
@Entity
@Table(name = "membership_professional_body")
public class MembershipOfProfessionalBody extends Identity {

	/** The name. */
	private String name;

	/** The type of membership. */
	private String typeOfMembership;

	/** The cv data. */
	private CvData cvData;

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Sets the name.
	 * 
	 * @param name
	 *            the new name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * Gets the type of membership.
	 * 
	 * @return the type of membership
	 */
	public String getTypeOfMembership() {
		return typeOfMembership;
	}

	/**
	 * Sets the type of membership.
	 * 
	 * @param typeOfMembership
	 *            the new type of membership
	 */
	public void setTypeOfMembership(String typeOfMembership) {
		this.typeOfMembership = typeOfMembership;
	}

	/**
	 * Gets the cv data.
	 * 
	 * @return the cv data
	 */
	@ManyToOne
	public CvData getCvData() {
		return cvData;
	}

	/**
	 * Sets the cv data.
	 * 
	 * @param cvData
	 *            the new cv data
	 */
	public void setCvData(CvData cvData) {
		this.cvData = cvData;
	}

}
